home *** CD-ROM | disk | FTP | other *** search
Makefile | 1995-07-12 | 5.1 KB | 183 lines |
- # Copyright (c) 1988 Regents of the University of California.
- # All rights reserved.
- #
- # Redistribution and use in source and binary forms are permitted
- # provided that the above copyright notice and this paragraph are
- # duplicated in all such forms and that any documentation,
- # advertising materials, and other materials related to such
- # distribution and use acknowledge that the software was developed
- # by the University of California, Berkeley. The name of the
- # University may not be used to endorse or promote products derived
- # from this software without specific prior written permission.
- # THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
- # IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
- # WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
- #
- # @(#)Makefile 5.1 (Berkeley) 5/11/90
- #
-
- #CFLAGS = -DBSD42 -O
- CFLAGS = -O
- BINDIR= /usr/skunk/games
- WARPLIB= /usr/skunk/games/lib/warp
-
- INCL= EXTERN.h INTERN.h bang.h config.h init.h intrp.h move.h object.h\
- patchlevel.h play.h score.h sig.h term.h them.h us.h util.h version.h\
- warp.h weapon.h
- SRCS= bang.c init.c intrp.c move.c object.c play.c score.c sig.c term.c \
- them.c us.c util.c version.c warp.c weapon.c
- OBJS= bang.o init.o intrp.o move.o object.o play.o score.o sig.o term.o \
- them.o us.o util.o version.o warp.o weapon.o
-
- warp: ${OBJS}
- ${CC} ${OBJS} -o $@ -lsocket -ltermlib -lm
-
- tags: ${INCL} ${SRCS}
- ctags -w ${INCL} ${SRCS}
-
- clean:
- rm -f core ${OBJS}
-
- clobber: clean
- rm -f warp
-
- smap.0: smp.0 sm
- sm <smp.0 >smap.0
- smap.1: smp.1 sm
- sm <smp.1 >smap.1
- smap.2: smp.2 sm
- sm <smp.2 >smap.2
- smap.3: smp.3 sm
- sm <smp.3 >smap.3
- smap.4: smp.4 sm
- sm <smp.4 >smap.4
- smap.5: smp.5 sm
- sm <smp.5 >smap.5
- smap.6: smp.6 sm
- sm <smp.6 >smap.6
- smap.7: smp.7 sm
- sm <smp.7 >smap.7
- sm: sm.c
- ${CC} sm.c -o $@
-
- depend: ${INCL} ${SRCS} Mdepend.awk
- cp Makefile Makefile-
- awk -f Mdepend.awk ${INCL} ${SRCS} | ed Makefile > /dev/null
- -touch depend
-
- # DO NOT DELETE THIS LINE - "make depend" requires it.
- # Generated by Mdepend.awk version 1.1(01)
- # The dependencies were generated by examining the following files:
- # EXTERN.h INTERN.h bang.h config.h init.h intrp.h move.h object.h
- # patchlevel.h play.h score.h sig.h term.h them.h us.h util.h version.h
- # warp.h weapon.h bang.c init.c intrp.c move.c object.c play.c score.c
- # sig.c term.c them.c us.c util.c version.c warp.c weapon.c
- bang.o: EXTERN.h warp.h object.h move.h sig.h term.h them.h INTERN.h bang.h\
- config.h
- init.o: EXTERN.h warp.h bang.h object.h move.h play.h score.h term.h them.h\
- us.h util.h weapon.h INTERN.h init.h config.h
- intrp.o: EXTERN.h warp.h sig.h util.h term.h INTERN.h intrp.h config.h
- move.o: EXTERN.h warp.h bang.h object.h move.h play.h score.h term.h them.h\
- us.h util.h weapon.h INTERN.h move.h config.h
- object.o: EXTERN.h warp.h INTERN.h object.h config.h
- play.o: EXTERN.h warp.h bang.h score.h object.h move.h term.h them.h us.h\
- util.h weapon.h INTERN.h play.h config.h
- score.o: EXTERN.h warp.h intrp.h object.h play.h sig.h term.h us.h util.h\
- weapon.h INTERN.h score.h config.h
- sig.o: EXTERN.h warp.h play.h score.h term.h util.h INTERN.h sig.h config.h
- term.o: EXTERN.h warp.h bang.h intrp.h object.h play.h score.h sig.h us.h\
- util.h weapon.h INTERN.h term.h config.h
- them.o: EXTERN.h warp.h bang.h object.h move.h score.h term.h us.h util.h\
- weapon.h INTERN.h them.h config.h
- us.o: EXTERN.h warp.h bang.h object.h play.h sig.h term.h util.h weapon.h\
- INTERN.h us.h config.h
- util.o: EXTERN.h warp.h object.h sig.h term.h INTERN.h util.h config.h
- version.o: patchlevel.h INTERN.h version.h
- warp.o: INTERN.h warp.h EXTERN.h bang.h init.h intrp.h object.h move.h play.h\
- score.h sig.h term.h them.h us.h util.h version.h weapon.h config.h
- weapon.o: EXTERN.h warp.h bang.h object.h move.h score.h sig.h term.h them.h\
- us.h util.h INTERN.h weapon.h config.h
- # ALSO DO NOT DELETE THIS LINE - "make depend" requires it.
-
-
- install: $(BINDIR) $(WARPLIB) $(WARPLIB)/save\
- $(BINDIR)/warp $(WARPLIB)/warp.doc $(WARPLIB)/warp.news\
- $(WARPLIB)/warp.top $(WARPLIB)/warp.lowtop $(WARPLIB)/warp.funtop\
- $(WARPLIB)/warp.log\
- $(WARPLIB)/smap.0 $(WARPLIB)/smap.1 $(WARPLIB)/smap.2\
- $(WARPLIB)/smap.3 $(WARPLIB)/smap.4 $(WARPLIB)/smap.5\
- $(WARPLIB)/smap.6 $(WARPLIB)/smap.7
- touch install
-
- $(BINDIR):
- mkdir $@
- chmod 755 $@
-
- $(WARPLIB):
- mkdir $@
- chmod 755 $@
-
- $(WARPLIB)/save:
- mkdir $@
- chmod 777 $@
-
- $(BINDIR)/warp: warp
- cp $? $@
- chmod 711 $@
-
- $(WARPLIB)/warp.doc: warp.doc
- cp $? $@
- chmod a+r $@
-
- $(WARPLIB)/warp.news: warp.news
- cp $? $@
- chmod a+r $@
-
- $(WARPLIB)/warp.top:
- -touch $@
- chmod a+rw $@
-
- $(WARPLIB)/warp.lowtop:
- -touch $@
- chmod a+rw $@
-
- $(WARPLIB)/warp.funtop:
- -touch $@
- chmod a+rw $@
-
- $(WARPLIB)/warp.log:
- -touch $@
- chmod a+rw $@
-
- $(WARPLIB)/smap.0: smap.0
- cp $? $@
- chmod a+r $@
-
- $(WARPLIB)/smap.1: smap.1
- cp $? $@
- chmod a+r $@
-
- $(WARPLIB)/smap.2: smap.2
- cp $? $@
- chmod a+r $@
-
- $(WARPLIB)/smap.3: smap.3
- cp $? $@
- chmod a+r $@
-
- $(WARPLIB)/smap.4: smap.4
- cp $? $@
- chmod a+r $@
-
- $(WARPLIB)/smap.5: smap.5
- cp $? $@
- chmod a+r $@
-
- $(WARPLIB)/smap.6: smap.6
- cp $? $@
- chmod a+r $@
-
- $(WARPLIB)/smap.7: smap.7
- cp $? $@
- chmod a+r $@
-